
<%@ page pageEncoding="UTF-8" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="lb" uri="/WEB-INF/tlds/laobing.tld" %>
<title>账号管理</title>


<div class="panel panel-headline">
    <div class="panel-heading">
        <h3 class="panel-title">账号列表</h3>
    </div>
    <div class="panel-body">
        <div class="row">
            <form method="post" action="${ctx}/systemAccounts">
                <div class="col-lg-6">
                    <div class="input-group">
                        <input type="text" name="nameOrAccount" value="${param.nameOrAccount}" class="form-control" placeholder="输入学生姓名或者账号">
                        <span class="input-group-btn">
                             <button class="btn btn-primary" type="submit">查询</button>
                         </span>
                    </div><!-- /input-group -->
                </div>
            </form>
        </div>

        <table class="table table-bordered" style="margin-top: 10px">
            <thead>
            <tr>
                <th>编号</th>
                <th>账号</th>
                <th>姓名</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>

            <c:forEach var="systemAccount" items="${systemAccountPage.content}">
            <tr>
                <td>${systemAccount.id}</td>
                <td>${systemAccount.account}</td>
                <td>${systemAccount.student.name}</td>
                <td>
                    <a href="" class="btn btn-sm btn-danger">锁定</a>
                    <a href="" class="btn  btn-sm btn-success">解锁</a>
                </td>
            </tr>

            </c:forEach>
            </tbody>
        </table>

        <lb:pagination value="${systemAccountPage}" />

    </div>


</div>